// 基础返回
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}
// 单个菜单
export interface Premission {
  id: number;
  createTime: string;
  updateTime: string;
  pid: number;
  name: string;
  code: string;
  toCode: null;
  type: number;
  status: null;
  level: number;
  children: PremissionList;
}
// 所有菜单列表
export type PremissionList = Premission[];
// 获取菜单接口返回
export interface ResponsePermission extends ResponseData {
  data: PremissionList;
}
// 修改/新增发送数据类型
export interface MenuParam {
  id?: number;
  code: string;
  level: number;
  name: string;
  pid: number;
}
